const express = require('express')
const cors = require('cors')
//归因分析
const app = express()

app.use(cors())

//告警归因分析
const guiyinfenxi = require('./guiyinfenxi/api');
app.use('/alarm', guiyinfenxi);

//tpcnEn
const tpcnEnRouter = require('./tpcnEn/api');
app.use('/tpcnEn', tpcnEnRouter);

//设备红绿灯
const shebeihonglvdengRouter = require('./shebeihonglvdeng/api');
app.use('/deviceStatus', shebeihonglvdengRouter);

const agility = require('./shebeihonglvdeng/agility');
app.use('/agility', agility);

//b7
const b7 = require('./b7/api');
app.use('/b7', b7);
const PORT = 9000
app.listen(PORT, () => {
    console.log(`✅ mock服务已启动 http://localhost:${PORT}`)
})
